package besuper;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.FIELD)
public class Answer {

	public Answer(String content,Player anser) {
		this.content = content;
		this.anser = anser;
		
	}
	public Answer(){
		
	}
	@XmlElement(name = "答题人")
	private Player anser;
	
	@XmlElement(name = "内容")
	private String content;

	
	public Player getAnser() {
		return anser;
	}

	public void setAnser(Player anser) {
		this.anser = anser;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String toString() {
		String s = "\nanswer:\n";
		s+=" 内容: "+content;
		s+="  答题人: "+anser.getName();
		return s;
	}
	
}
